<template>
	<view>
		<u-sticky offset-top="0">
			<navBarView title="民事" :statusBarHeight="statusBarHeight"></navBarView>
		</u-sticky>
		<!-- 当事人 -->
		<dangShiRenXinXi :isEdit="false" 
		:infoDic="dangShiRenInfoDic" 
		@dangShiRenInfoCallBack="dangShiRenInfoCallBack">
		</dangShiRenXinXi>
		<!-- 对方当事人信息 -->
		<duiFangDangShiRenXinXi :isEdit="false" 
		:infoDic="duiFangDangShiRenInfoDic"
		 @duiFangDangShiRenInfoCallBack="duiFangDangShiRenInfoCallBack">
		 </duiFangDangShiRenXinXi>
		<!-- 第三人 -->
		<diSanRen :isEdit="false" 
		:infoDic="diSanRenInfoDic" 
		@diSanRenInfoCallBack="diSanRenInfoCallBack">
		</diSanRen>
		<!-- <diSanRenTypeGongSi></diSanRenTypeGongSi> -->
		<!-- 法定代理人 -->
		<faDingDaiLiRenXinXi :isEdit="false" 
		:infoDic="faDingDaiLiRenInfoDic" 
		@faDingDaiLiRenInfoCallBack="faDingDaiLiRenInfoCallBack">
		</faDingDaiLiRenXinXi>
		<!-- 单位信息 -->
		<danWeiXinXi :isEdit="false" 
		:infoDic="danWeiInfoDic" 
		@danWeiInfoCallBack="danWeiInfoCallBack">
		</danWeiXinXi>
		<!-- 对方单位信息 -->
		<duiFangDanWeiXinXi :isEdit="false" 
		:infoDic="duiFangDanWeiInfoDic" 
		@duiFangDanWeiInfoCallBack="duiFangDanWeiInfoCallBack">
		</duiFangDanWeiXinXi>
		<!-- 阶段案由机关费用 -->
		<JieDuanAnYouJiGuanFeiYong :isEdit="false" 
		:infoDic="JieDuanAnYouJiGuanFeiYongInfoDic" 
		@JieDuanAnYouJiGuanFeiYongInfoCallBack="JieDuanAnYouJiGuanFeiYongInfoCallBack">
		</JieDuanAnYouJiGuanFeiYong>
		<!-- 补充信息 -->
		<buChongXinXi :isEdit="false" 
		:infoDic="buChongXinXiInfoDic" 
		@buChongXinXiInfoCallBack="buChongXinXiInfoCallBack">
		</buChongXinXi>
		<!-- 补充接待笔录 -->
		<buChongBiLu :isEdit="false" 
		:infoDic="buChongBiLuInfoDic" 
		@buChongBiLuInfoCallBack="buChongBiLuInfoCallBack">
		</buChongBiLu>
		<!-- 补充委托合同 -->
		<buChongHeTong :isEdit="false" 
		:infoDic="buChongHeTongInfoDic" 
		@buChongHeTongInfoCallBack="buChongHeTongInfoCallBack">
		</buChongHeTong>
		<!-- 补充委托书 -->
		<buChongWeiTuoShu :isEdit="false" 
		:infoDic="buChongWeiTuoShuInfoDic" 
		@buChongWeiTuoShuInfoCallBack="buChongWeiTuoShuInfoCallBack">
		</buChongWeiTuoShu>
		
		<!-- 生成书表信息 -->
		<shengChengWenJian @createItemClick="createItemClick">
		</shengChengWenJian>
		
		<view style="height: 190rpx;"></view>
		<bottomViewTwoButton @leftBtnClick="leftBtnClick" @rightBtnClick="rightBtnClick"></bottomViewTwoButton>
	</view>
</template>


<script>
	export default {
		onShow() {
			let sysInfo = uni.getSystemInfoSync()
			this.statusBarHeight = sysInfo.statusBarHeight; // 状态栏高度
		},
		data() {
			return {
				statusBarHeight: '',// 状态栏高度
				//补充委托书
				buChongWeiTuoShuInfoDic:{
					entrustaddress: '',
					entrustdate: ''
				},
				//补充委托合同
				buChongHeTongInfoDic:{
					entrustagelimit: '',
					entrustagelimitbegin: '',
					entrustagelimitend:'',
					contractonsultantfees:'',
					contractagencyfee: '',
					contractbookingfee:'',
					contractlumpsumfee:'',
					contractprereceived: '',
					contractmeetingfees:'',
					contracttime:''
				},
				//补充接待笔录
				buChongBiLuInfoDic:{
					recordinformation: '',
					recordopinion: '',
					recordjobdescription:'',
					recordfinalcomments:''
				},
				//补充信息
				buChongXinXiInfoDic:{
					supplementlawfirmsname: '',
					supplementpersonnel:'',
					supplementhead:'',
					supplementsocialcode:'',
					supplementcontact:'',
					supplementenroll: '',
					supplementbankaccountname:'',
					supplementbankaccount:'',
					supplementbank:'',
					supplementlinenumber:''
				},
				//阶段案由机关费用
				JieDuanAnYouJiGuanFeiYongInfoDic:{
					appealstatusName:'',//上诉状态 文本显示-------------------
					appealstatus: '',//上诉状态（1.一审 2.二审 3.再审4.检查督查 ）
					brief: '',//案由
					brieftypeName:'',//是否 文本显示-------------------
					brieftype:'',//是否（1.涉黑 2.农民工3.救济人4.集体诉讼5.法律援助）
					institutiontypeName:'',//受理机构 文本显示-------------------
					institutiontype:'',//受理机构（1.法院2.公安机关3.检察院4.监狱5.海警局6.军队保卫部门7.仲裁院/委）
					institutioncontent:'',//受理机构名称
					amount:'',
					payment:'',
					description:''
				},
				//对方单位信息
				duiFangDanWeiInfoDic:{
					oppositeunitname: '',
					oppositeunitlegalpersons: '',
					oppositeunitcreditcode:'',
					oppositeunitcontact:''
				},
				//单位信息
				danWeiInfoDic:{
					unitname: '',
					unitlegalpersons: '',
					unitcreditcode:'',
					unitcontact:'',
					businesslicense: '',
					legalpersonsidcardfront:'',
					legalpersonsidcardreverse:''
				},
				//法定代理人
				faDingDaiLiRenInfoDic:{
					legalrepresentativename: '',//
					legalrepresentativesex: 1,//性别 （1.男 2 女）
					legalrepresentativetype:1,//法定代表人关系类型（1.配偶2.父母3.子女）
					legalrepresentativeidcard:''
				},
				//第三人
				diSanRenInfoDic:{
					thirdpersonname: '',
					thirdpersontype:1,//第三人类型（1.单位 2个人
					thirdpersonsex: 1,//性别 （1.男 2 女）
					thirdpersonidcard:'',
					thirdpersoncreditcode:'',
					thirdpersoncontact:''
				},
				//对方当事人信息
				duiFangDangShiRenInfoDic:
				{
					oppositecriminalname: '',
					oppositecriminalsex: 1,//性别 （1.男 2 女）
					oppositecriminalidcard:'',
					oppositecriminalcontact:''
				},
				//当事人信息
				dangShiRenInfoDic:{
					partyname: '',
					partysex: 1,//性别 （1.男 2 女）
					partyidcard:'',
					partycontact:'',
					partyidcardfront:'',
					partyidcardreverse:''
				},
				
			}
		},
		methods: {
			buChongWeiTuoShuInfoCallBack(e){
				this.buChongWeiTuoShuInfoDic = e
			},
			buChongHeTongInfoCallBack(e){
				this.buChongHeTongInfoDic = e
			},
			buChongBiLuInfoCallBack(e){
				this.buChongBiLuInfoDic = e
			},
			buChongXinXiInfoCallBack(e){
				this.buChongXinXiInfoDic = e
			},
			JieDuanAnYouJiGuanFeiYongInfoCallBack(e){
				this.JieDuanAnYouJiGuanFeiYongInfoDic = e
			},
			duiFangDanWeiInfoCallBack(e){
				this.duiFangDanWeiInfoDic = e
			},
			danWeiInfoCallBack(e){
				this.danWeiInfoDic = e
			},
			dangShiRenInfoCallBack(e){
				this.dangShiRenInfoDic = e
			},
			duiFangDangShiRenInfoCallBack(e){
				this.duiFangDangShiRenInfoDic = e
			},
			diSanRenInfoCallBack(e){
				this.diSanRenInfoDic = e
			},
			faDingDaiLiRenInfoCallBack(e){
				this.faDingDaiLiRenInfoDic = e
			},
			createItemClick(item){
				console.log('item----',item)
				/*['收案审批表','电签委托合同','风险告知书','委托书','接待笔录','空白诉状','空白申请书']*/
				switch (item){
					case '收案审批表':
					{
						
					}
						break;
					case '电签委托合同':
					{
						this.isShowAlert = true
					}
						break;
					case '风险告知书':
					{
						
					}
						break;
					case '委托书':
					{
						
					}
						break;
					case '接待笔录':
					{
						
					}
						break;
					case '空白诉状':
					{
						
					}
						break;
					case '空白申请书':
					{
						
					}
						break;
					default:
						break;
				}
			},
		}
	}
</script>

<style>
	
</style>
